package com.yuhanginfo.modules.web.entity;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.WebDataEntity;

/**
 * 开票管理Entity
 * @author lvls
 * @version 2017-10-30
 */
public class WebInvoice extends WebDataEntity<WebInvoice> {
	
	private static final long serialVersionUID = 1L;
	private String UserId;		// 用户id
	private String company;		// 公司名称
	private String address;		// 开票地址
	private String account;		// 账户
	private String isDef;		// 是否默认：0否，1是
	private String blank;		// 开户银行
	private String dutyCode;		// 纳税人识别号
	
	public WebInvoice() {
		super();
	}

	public WebInvoice(String id){
		super(id);
	}
	
	
	public String getUserId() {
		return UserId;
	}

	public void setUserId(String userId) {
		UserId = userId;
	}

	@Length(min=0, max=50, message="公司名称长度必须介于 0 和 50 之间")
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
	
	@Length(min=0, max=255, message="开票地址长度必须介于 0 和 255 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=50, message="账户长度必须介于 0 和 50 之间")
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}
	
	@Length(min=0, max=11, message="是否默认：0否，1是长度必须介于 0 和 11 之间")
	public String getIsDef() {
		return isDef;
	}

	public void setIsDef(String isDef) {
		this.isDef = isDef;
	}
	
	@Length(min=0, max=50, message="开户银行长度必须介于 0 和 50 之间")
	public String getBlank() {
		return blank;
	}

	public void setBlank(String blank) {
		this.blank = blank;
	}
	
	@Length(min=0, max=50, message="纳税人识别号长度必须介于 0 和 50 之间")
	public String getDutyCode() {
		return dutyCode;
	}

	public void setDutyCode(String dutyCode) {
		this.dutyCode = dutyCode;
	}
	
}